﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace sccf
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
            
            string t = Request.Url.Segments[Request.Url.Segments.Length - 1];
            if (t.CompareTo("Login.aspx") == 0)
            {
                NavigationMenu.Visible = false;
            }
            if (!IsPostBack)
            {
                if (Vars.TipoUsuario.CompareTo("Asist") == 0)
                {
                    
                        NavigationMenu.Items.RemoveAt(3);
                }
                else if (Vars.TipoUsuario.CompareTo("Cons") == 0)
                {
                    for (int i = 0; i < 7; i++)
                        NavigationMenu.Items.RemoveAt(0);
                    
                }
            }


        }
    }
}
